#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int a[100];
    int n = 0;
    int temp;
    while(true)
    {
        cin >> temp;
        if(temp  == -1)  break;
        a[n] = temp;
        n = n + 1;
    }
    int sum  = 0;
    int product = 1;
    for(int i = 0; i< n; i++)
    {
        sum = sum + a[i];
        product = product * a[i];
    }
    cout << "Sum is " << sum << endl;
    cout << "Average is " << fixed << setprecision(1) << sum / (float)n  << endl;
    cout << "Product is " << product << endl;

    int small = a[0];
    int large = a[0];
    for(int i = 1; i < n; i++)
    {
        if(a[i] < small)
            small  = a[i];
        if(a[i] > large)
            large = a[i];
    }
    cout << "Smallest is " << small  << endl;
    cout << "Largest is " << large  << endl;
}